<html>
<head>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
</head>
<body>

<script>
    function test() {
        $.ajax({
            type: 'GET',
            url: '/name',
            data: {
                name: "yuruixin"
            },
            dataType: 'json',
            success: function (data) {
                console.info(data);
            },
            error: function () {
//                alert("出错了,请重试!");
            }
        });
    }

    test()
</script>
</body>
</html>
